#include<bits/stdc++.h>
#include<windows.h>
#include<cstdlib>
#define random(a,b) (rand()%(b-a+1)+a)
int money=3000;
using namespace std;
int main()
{
	srand((unsigned)time(NULL));
	system("大聪明.exe");
	Sleep(1500);
	cout<<"emmm...按任意键开始游戏"<<endl;
	Sleep(1500);
	string Rstart;
	cin>>Rstart;
	cout<<"干的漂亮!你个孤儿"<<endl;	
	Sleep(1500);
	cout<<"你好,训练师,你叫什么名字?"<<endl;
	Sleep(1500);
	string Name;
	cin>>Name;
	cout<<"哦,原来你叫"<<Name<<"啊!"<<endl;
	Sleep(1500);
	cout<<"那你的性别呢?你是萌萌哒?还是基佬?"<<endl;
	Sleep(1500);
	string Gender;
	cin>>Gender;
	if(Gender=="Male"||Gender=="male")
		cout<<"哦!你是基佬啊!"<<endl;
	if(Gender=="Female"||Gender=="female")
		cout<<"哦!你是萌萌哒啊!"<<endl;
	Sleep(1500);
	cout<<"哦,我差点忘了介绍我了,我叫成也 ·木大,属于你的冒险即将开始,阿罗拉!"<<endl;
	Sleep(1500);
	cout<<Name<<":完了!今天是去拿研究所宝可梦的日子!要迟到了!!!"<<endl;
	Sleep(1500);
	cout<<"于是"<<Name<<"不刷牙就跑下了楼,到了研究所"<<endl;
	Sleep(1500);
	cout<<"成也 ·木大:哦,"<<Name<<"你来了啊!"<<endl;
	Sleep(1500);
	cout<<Name<<":所以博士,我的宝可梦呢?!"<<endl;
	Sleep(1500);
	cout<<"成也 ·木大:在那呢!"<<endl;
	Sleep(1500);
	cout<<"小火龙:火龙宝可梦,尾巴上的火焰是重要器官,如果火焰熄灭就会死亡。"<<endl;
	cout<<"杰尼龟:乌龟宝可梦,可以从嘴中喷出威力巨大的水炮。"<<endl;
	cout<<"妙蛙种子:种子宝可梦,可以从背上的蒜中召唤藤条攻击。"<<endl;
	cout<<"皮卡丘:电气鼠宝可梦,可以发出超过十万伏特的电压。"<<endl;
	Sleep(1500);
	cout<<"成也 ·木大:所以...你要选哪只呢???"<<endl;
	Sleep(1500);
	cout<<Name<<"额......"<<endl;
	Sleep(1500);
	cout<<"请选择你想要的宝可梦吧!!!"<<endl;
	Sleep(1500);
	string pokemon;
	cin>>pokemon;
	cout<<Name<<"从成也 ·木大那里拿到了"<<pokemon<<"!"<<endl;
	Sleep(1500);
	cout<<"成也 ·木大:哦!是"<<pokemon<<"啊!它很是很bug的宝可梦呢!!!"<<endl;
	Sleep(1500);
	cout<<"?:等等"<<Name<<"!"<<endl;
	Sleep(1500);
	cout<<"成也 ·木大:青绿,你要对战吗?"<<endl;
	Sleep(1500);
	cout<<"是的!祖父!戦いましょう!"<<endl;
	Sleep(1500);
	cout<<"劲敌青绿前来挑战了!"<<endl;
	Sleep(1500);
	cout<<"青绿派出了小拉达 LV5!"<<endl;
	Sleep(1500);
	cout<<Name<<"派出了"<<pokemon<<" LV5!"<<endl;
	Sleep(1500);
	int Xm=20,Pm=22,X,P;
	cout<<pokemon<<"要干什么?"<<endl;
	Sleep(1500);
	cout<<"撞击 叫声"<<endl;
	Sleep(1500);
	string Ga;
	cin>>Ga;
	if(Ga=="撞击")
	{
		cout<<"小拉达使用了电光一闪!"<<endl; 
		int Q=random(1,100);
		int S=random(1,15);
		int P=random(1,20);
		if(Q>=60)
		{
			cout<<"击中了要害!"<<endl;
			Sleep(1500);
			cout<<pokemon<<"受到了"<<S*2<<"点伤害"<<endl;
			Pm-=S*2;
			if(Pm<=0)
			{
				cout<<pokemon<<"倒下了!你输了!"<<endl;
				return 0;
			}	
			cout<<pokemon<<"使出了"<<Ga<<"!"<<endl;
			Sleep(1500);
			if(Q>=60)
			{
				cout<<"击中了要害!"<<endl;
				Sleep(1500);
				cout<<"小拉达受到了"<<P*2<<"点伤害!"<<endl;
				Sleep(1500);
				Xm-=P*2;
				if(Xm<=0)
				{
					cout<<"小拉达倒下了!你赢了!"<<endl;
					Sleep(1500);
					cout<<"作为奖金,"<<Name<<"获得了"<<P<<"元"<<endl;
					money+=P;
					Sleep(1500);
					cout<<"青绿:切...你还不错嘛..."<<endl;
				}
			}
		} 
		else
		{
			cout<<pokemon<<"受到了"<<S<<"点伤害";
			Sleep(1500);
			Pm-=S; 
			if(Pm<=0)
			{
				cout<<pokemon<<"倒下了!你输了!"<<endl;
				return 0;
			}	
			cout<<pokemon<<"使出了"<<Ga<<"!"<<endl;
			Sleep(1500);
			if(Q>=60)
			{
				cout<<"击中了要害!"<<endl;
				Sleep(1500);
				cout<<"小拉达受到了"<<P*2<<"点伤害!"<<endl;
				Sleep(1500);
				Xm-=P*2;
				if(Xm<=0)
				{
					cout<<"小拉达倒下了!你赢了!"<<endl;
					Sleep(1500);
					cout<<"作为奖金,"<<Name<<"获得了"<<P<<"元"<<endl;
					money+=P;
					Sleep(1500);
					cout<<"青绿:切...你还不错嘛..."<<endl;
				}
			}
			else
			{
				cout<<"小拉达受到了"<<P<<"点伤害!"<<endl;
				Sleep(1500);
				Xm-=P;
				if(Xm<=0)
				{
					cout<<"小拉达倒下了!你赢了!"<<endl;
					Sleep(1500);
					cout<<"作为奖金,"<<Name<<"获得了"<<P<<"元"<<endl;
					money+=P;
					Sleep(1500);
					cout<<"青绿:切...你还不错嘛..."<<endl;
				}
			}
		}		
	} 
	return 0;
}